﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Police.Configuration
{
    /// <summary>
    /// Contains information relatives to single solution.
    /// </summary>
    [Serializable]
    public sealed class Solution
    {
        /// <summary>
        /// Gets or sets solution's name.
        /// </summary>
        [XmlAttribute]
        public String Name { get; set; }

        /// <summary>
        /// Gets or sets value that indicate if solution must be checked.
        /// If this parameter is set to true, inner properties are no relevant.
        /// </summary>
        [XmlAttribute]
        public Boolean Check { get; set; }

        /// <summary>
        /// Gets or sets list of projects associated to this solutions.
        /// </summary>
        [XmlArray(ElementName="Projects")]
        public List<SolutionProject> Projects { get; set; }
    }
}
